'use strict';
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
function l(c, t, i) {
  if (t) {
    i === null && (i = t.length);
    for (let n = i - 1; n >= 0; --n) {
      let e = t[n];
      switch (e.type) {
        case 'space':
        case 'comment':
        case 'newline':
          c -= e.source.length;
          continue;
      }
      for (e = t[++n]; (e == null ? void 0 : e.type) === 'space'; )
        (c += e.source.length), (e = t[++n]);
      break;
    }
  }
  return c;
}
exports.emptyScalarPosition = l;
